package com.aaa.mapper;

import com.aaa.entity.Orderdetails;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderdetailsMapper {
    List<Map<String,Object>> finddetails(Integer oid);

    List<Map<String, Object>> findbyOdid(Integer oid);

    Integer checkstate(Integer odid, String state);

    Map<String, Object> findchecknum(Integer oid, String state);

    Map<String, Object> findnum(Integer oid);

    List<Map<String, Object>> findroom(String startdate, String enddate, Integer rtid,String state);

    Integer addroom(Integer rid, Integer odid);

    Integer OverTimeState(Integer id, String state);

    List<Map<String, Object>> findroombyid(Integer id);

    List<Map<String, Object>> findodid(Integer rid);

    Integer checkoutstate(Integer id);

    List<Map<String, Object>> findStateByOid(Integer orderid);

    List<Map<String, Object>> findinroom(String startdate, String enddate, String state);

    Map<String, Object> findorder(Integer odid);

    Integer changeroom(Integer odid, Integer newrid, Integer rtid);


    List<Map<String, Object>> findcheckout(Integer odid);

    Integer checkinOrderdetails(Orderdetails orderdetails);
}
